﻿using System;

namespace hDualPaneLib.Model
{
    public class ItemInfo
    {
        public string Name { get; set; }
        public string Extension { get; set; }
        public long Size { get; set; }
        public string FormattedSize {
            get {
                if (Size >= 0)
                {
                    double kb = Math.Round((double)Size / 1024);
                    return kb.ToString("#,###.##")+ " KBs";
                }
                else
                {
                    return "N/A";
                }
            }
        }

        public bool Selected { get; set; }
        public DataTypeHelper.ManagerPanel Pane { get; set; }
    }
}
